
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<include file="public:meta" />
	<link href="../public/css/company/common.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/company/company_talent.css?v={:time()}" rel="stylesheet" type="text/css" />
	<link href="../public/css/common_ajax_dialog.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/company/company_ajax_dialog.css" rel="stylesheet" type="text/css" />
	<script src="../public/js/company/jquery.common.js" type="text/javascript" language="javascript"></script>


</head>
<body>
	<include file="index_header" />
	<div class="index_main">
		<!-- 左侧 -->
		<div class="ileft">
			<div class="hellow">
				<div class="logobox">
					<a href="{:U('com_info')}"><img src="<if condition="$company_profile['logo']">{:attach($company_profile['logo'],'company_logo')}<else/>{:attach('no_logo.png','resource')}</if>?{:time()}" width="120" height="120" border="0" /></a>
				</div>
				<div class="tit"><span>{$company_profile.companyname}公司，你好！</span><br /><span class="currenttime">今天是{:date('m月d日',time())}&nbsp;&nbsp;&nbsp;星期{$week[date('w')]}</span></div>
				<div class="project_currency_balance">
					<div class="txt">工程币余额(个)：<span class="balance_num">{$MembersSetgcb.surplus}</span><div class="btn_yellow">充值</div></div>	
				</div>
				<div class="set_meal">
					<div class="txt">我的套餐到期日：<span class="balance_num"><if condition="$setmeal['end_time'] eq 0">无限期<else/>{:date('Y-m-d',$setmeal['end_time'])}</if></span></div>	
				</div>
			</div>
			<!-- 客服-->
			<notempty name="consultant">
				<div class="service">

					<div class="pic">
						<div class="td1"><img src="{:attach($kf_weixin_img,'resource')}"  width="90"  height="90"  border="0"/></div>
						<div class="td2">
							<div class="name">{$consultant.name}</div>
							微信号：{$kefu_wx_num}
						</div>
						<div class="clear"></div>
					</div>
					<if condition="$top_tel || $bootom_tel">
						<div class="tel">
							<if condition="$top_tel">
								电话1：{$top_tel}<br />
							</if>
							<if condition="$bootom_tel">
								电话2：{$bootom_tel}
							</if>
						</div>
					</if>
				</div>
			</notempty>
		</div>
		<!-- 右侧 -->


		<div class="iright">
			<div class="search" id="typeSearch">
				<div class="headline <if condition="$Think.get.typesearch eq '' or $Think.get.typesearch eq 'personnel'">select</if>" data-type="personnel"  >人才搜索 <div class=" sanjiao"></div></div>
				<div class="headline <if condition=" $Think.get.typesearch eq 'full'">select</if>" data-type="full">全文<div class=" sanjiao"></div></div>
				<div class="headline <if condition=" $Think.get.typesearch eq 'position'">select</if>" data-type="position">职位名称<div class=" sanjiao"></div></div>
				<form action="" id="ajax_search_location">
					<input class="in_sea_inp" type="text" name="keyword" value="{$Think.get.keyword}" id="keyword" placeholder="请输入关键字搜人才" />
				</form>
				<div class="in_sea_bt" id="top_search_btn">搜 索</div>
				<div class="empty"><a href="{:U('search_for_talent')}" >清空条件</a></div>
				<div class="advanced_search" >高级搜索</div>
			</div>
			<div class="clear"></div>
			<!-- ================================================= -->
			<!--搜索 -->
			<div class="so_condition J_so_condition" 
				<if condition="$Think.get.experience eq '' && $Think.get.education eq '' && $Think.get.age eq '' && $Think.get.sex eq '' && $Think.get.wage eq '' && $Think.get.language eq '' && $Think.get.liveprovince eq '' && $Think.get.expectprovince eq '' && $Think.get.jobs eq '' && $Think.get.major eq '' && $Think.get.settr eq ''">style="display:none;"</if>>
				<div class="lefttit">工作经验</div>
				<div class="rs">
					<qscms:classify 列表名="experience_list" 类型="QS_experience" 显示数目="100"/>
					<div onclick="javascript:location.href='{:P(array(\'experience\'=>\'\'))}'" class="li <if condition="$Think.get.experience eq ''">select</if>">不限</div>
					<volist name="experience_list" id="experience">
						<div onclick="javascript:location.href='{:P(array(\'experience\'=>$key))}'" class="li <if condition="$Think.get.experience eq $key">select</if>">{$experience}</div>
					</volist>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">学历要求</div>
				<div class="rs">
					<qscms:classify 列表名="education_list" 类型="QS_education" 显示数目="100"/>
					<div onclick="javascript:location.href='{:P(array(\'education\'=>\'\'))}'" class="li <if condition="$Think.get.education eq ''">select</if>">不限</div>
					<volist name="education_list" id="education">
						<div onclick="javascript:location.href='{:P(array(\'education\'=>$key))}'" class="li <if condition="$Think.get.education eq $key">select</if>">{$education}</div>
					</volist>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">年龄</div>
				<div class="rs">
					<qscms:classify 列表名="age_list" 类型="QS_age"/>
					<div onclick="javascript:location.href='{:P(array(\'age\'=>\'\'))}'" class="li <if condition="$Think.get.age eq ''">select</if>">不限</div>
					<volist name="age_list" id="age">
						<div onclick="javascript:location.href='{:P(array(\'age\'=>$key))}'" class="li <if condition="$Think.get.age eq $key">select</if>">{$age}</div>
					</volist>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">性别</div>
				<div class="rs">
					<div onclick="javascript:location.href='{:P(array(\'sex\'=>\'\'))}'" class="li <if condition="$Think.get.sex eq ''">select</if>">不限</div>
					<div onclick="javascript:location.href='{:P(array(\'sex\'=>1))}'" class="li <if condition="$Think.get.sex eq 1">select</if>">男</div>
					<div onclick="javascript:location.href='{:P(array(\'sex\'=>2))}'" class="li <if condition="$Think.get.sex eq 2">select</if>">女</div>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">期望薪资</div>
				<div class="rs">
					<qscms:classify 列表名="wage_list" 类型="QS_wage" 显示数目="100"/>
					<div onclick="javascript:location.href='{:P(array(\'wage\'=>\'\'))}'" class="li <if condition="$Think.get.wage eq ''">select</if>">不限</div>
					<volist name="wage_list" id="wage">
						<div onclick="javascript:location.href='{:P(array(\'wage\'=>$key))}'" class="li <if condition="$Think.get.wage eq $key">select</if>">{$wage}</div>
					</volist>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">语言</div>
				<div class="rs">
					<qscms:classify 列表名="language_list" 类型="QS_language" 显示数目="100"/>
					<div onclick="javascript:location.href='{:P(array(\'language\'=>\'\'))}'" class="li <if condition="$Think.get.language eq ''">select</if>">不限</div>
					<volist name="language_list" id="language">
						<div onclick="javascript:location.href='{:P(array(\'language\'=>$key))}'" class="li <if condition="$Think.get.language eq $key">select</if>">{$language}</div>
					</volist>
					<div class="clear"></div>
				</div>
				
				<div class="clear"></div>
				<div class="lefttit">居住地</div>
				<div class="rs">
					<qscms:classify 列表名="city_parent" 类型="QS_city_parent" 显示数目="100" />
					<div class="cs-right" id="selectCategoryBox">
						<select class="liveSelect" onchange="window.location=this.value;">
							<option value="">请选择省</option>
							<volist name="city_parent[0]" id="city_parentite">
								<option value="{:P(array(\'liveprovince\'=>$key,\'livecity\'=>'',\'livearea\'=>''))}" <if condition="$Think.get.liveprovince eq $key">selected=selected</if>>{$city_parentite.categoryname}</option>
							</volist>
						</select>
						<if condition="$Think.get.liveprovince neq ''">
							<select class="liveSelect" onchange="window.location=this.value;">
								<option value="">请选择市</option>
								<volist name="city_parent[$_GET['liveprovince']]" id="city_city">
									<option value="{:P(array(\'livecity\'=>$key,\'livearea\'=>''))}" <if condition="$Think.get.livecity eq $key">selected=selected</if> >{$city_city.categoryname}</option>
								</volist>
							</select>
						</if>
						<if condition="$Think.get.livecity neq ''">
							<select class="liveSelect" onchange="window.location=this.value;">
								<option value="">请选择区</option>
								<volist name="city_parent[$_GET['livecity']]" id="city_area">
									<option value="{:P(array(\'livearea\'=>$key))}" <if condition="$Think.get.livearea eq $key">selected=selected</if> >{$city_area.categoryname}</option>
								</volist>
							</select>
						</if>
					</div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
				<div class="lefttit">期望工作地点</div>
				<div class="rs">
					<qscms:classify 列表名="city_parent" 类型="QS_city_parent" 显示数目="100" />
					<div class="cs-right" id="selectCategoryBox">
						<select class="expectSelect" onchange="window.location=this.value;">
							<option value="">请选择省</option>
							<volist name="city_parent[0]" id="city_parentite">
								<option value="{:P(array(\'expectprovince\'=>$key,\'expectcity\'=>''))}" <if condition="$Think.get.expectprovince eq $key">selected=selected</if>>{$city_parentite.categoryname}</option>
							</volist>
						</select>
						<if condition="$Think.get.expectprovince neq ''">
							<select class="expectSelect" onchange="window.location=this.value;">
								<option value="">请选择市</option>
								<volist name="city_parent[$_GET['expectprovince']]" id="city_city">
									<option value="{:P(array(\'expectcity\'=>$key))}" <if condition="$Think.get.expectcity eq $key">selected=selected</if> >{$city_city.categoryname}</option>
								</volist>
							</select>
						</if>
					</div>
					<div class="clear"></div>
				</div>
				<div class="lefttit">更多筛选</div>
				<div class="rs">
					
					<div class="bli J_dropdown">
						<qscms:classify 列表名="jobs_list" 类型="QS_jobsw" 显示数目="100"/>
						<qscms:classify 列表名="jobs_info" 类型="QS_jobsw_info" id="$_GET['jobs']"/>

						<span class="txt" >职位类别</span>
						<div class="dropdowbox_searchmajor J_dropdown_menu">
							<div class="dropdow_inner_searchmajor">
								<ul class="nav_box">
									<div class="tabnav">
										<volist name="jobs_list[0]" id="jobs">
											<div class="tab_listjobs <if condition="$jobs_info['parentid'] eq $key">select</if>">{$jobs}</div>
										</volist>
										<div class="clear"></div>
									</div>
									<volist name="jobs_list[0]" id="sjobs">
										<div class="tab_contentjobs" data-code="{$key}">
											<volist name="jobs_list[$key]" id="jobs">
												<div class="content_list">
													<li onclick="javascript:location.href='{:P(array(\'jobs\'=>$key))}'" class="<if condition="$Think.get.jobs eq $key">select</if>" data-code="{$key}">{$jobs}</li>
												</div>
											</volist>
											<div class="clear"></div>
										</div>
									</volist>
								</ul>
							</div>
						</div>
						<div class="clear"></div>
					</div>

					<div class="bli J_dropdown">
						<qscms:classify 列表名="major_list" 类型="QS_major" 显示数目="100"/>
						<qscms:classify 列表名="major_info" 类型="QS_major_info" id="$_GET['major']"/>

						<span class="txt" >工程类别</span>
						<div class="dropdowbox_searchmajor J_dropdown_menu">
							<div class="dropdow_inner_searchmajor">
								<ul class="nav_box">
									<div class="tabnav">
										<volist name="major_list[0]" id="major">

											<div class="tab_list <if condition="$major_info['parentid'] eq $key">select</if>">{$major}</div>
										</volist>
										<div class="clear"></div>
									</div>
									<volist name="major_list[0]" id="smajor">
										<div class="tab_content" data-code="{$key}">

											<volist name="major_list[$key]" id="major">
												<div class="content_list">

													<li onclick="javascript:location.href='{:P(array(\'major\'=>$key))}'" class="<if condition="$Think.get.major eq $key">select</if>" data-code="{$key}">{$major}</li>
												</div>
											</volist>
											<div class="clear"></div>
										</div>
									</volist>
								</ul>
							</div>
						</div>
						<div class="clear"></div>
					</div>
					<div class="bli J_dropdown">
						<span>更新时间</span>
						<div class="dropdowbox_noa J_dropdown_menu">
							<div class="dropdow_inner_noa">
								<ul class="nav_box">
									<li onclick="javascript:location.href='{:P(array(\'settr\'=>3))}'" class="<if condition="$Think.get.settr eq 3">select</if>" data-code="3">3天内</li>
									<li onclick="javascript:location.href='{:P(array(\'settr\'=>7))}'" class="<if condition="$Think.get.settr eq 7">select</if>" data-code="7">7天内</li>
									<li onclick="javascript:location.href='{:P(array(\'settr\'=>15))}'" class="<if condition="$Think.get.settr eq 15">select</if>" data-code="15">15天内</li>
									<li onclick="javascript:location.href='{:P(array(\'settr\'=>30))}'" class="<if condition="$Think.get.settr eq 30">select</if>" data-code="30">30天内</li>
								</ul>
							</div>
						</div>
						<div class="clear"></div>
					</div>
					<div class="clear"></div>
				</div>
			<div class="clear"></div>

			<!--已选条件，当没有条件的时候不显示下面的DIV -->
			<if condition="$_GET">
				<div class="selected J_selected">
					<div class="stit">已选条件：</div>
					<div class="sc">
						<if condition="$Think.get.keyword neq ''">
							<div class="slist" onclick="window.location='{:P(array('keyword'=>''))}';">
								<span>关键字：</span>{$Think.get.keyword|urldecode|urldecode}
							</div>
						</if>
						<if condition="$Think.get.experience neq ''">
							<div class="slist" onclick="window.location='{:P(array('experience'=>''))}';">
								<span>工作经验：</span>{$experience_list[$_GET['experience']]}
							</div>
						</if>
						<if condition="$Think.get.education neq ''">
							<div class="slist" onclick="window.location='{:P(array('education'=>''))}';">
								<span>学历要求：</span>{$education_list[$_GET['education']]}</div>
						</if>
						<if condition="$Think.get.age neq ''">
							<div class="slist" onclick="window.location='{:P(array('age'=>''))}';">
								<span>年龄：</span>{$age_list[$_GET['age']]}</div>
						</if>
						<notempty name="Think.get.sex">
							<div class="slist" onclick="window.location='{:P(array('sex'=>''))}';">
								<span>性别：</span>
								<if condition="$Think.get.sex eq 1">男<else/>女</if>
							</div>
						</notempty>
						<if condition="$Think.get.wage neq ''">
							<div class="slist" onclick="window.location='{:P(array('wage'=>''))}';">
								<span>期望薪资：</span>{$wage_list[$_GET['wage']]}</div>
						</if>
						<if condition="$Think.get.language neq ''">
							<div class="slist" onclick="window.location='{:P(array('language'=>''))}';">
								<span>语言：</span>{$language_list[$_GET['language']]}</div>
						</if>
						<if condition="$Think.get.liveprovince neq ''">
							<div class="slist" onclick="window.location='{:P(array(\'liveprovince\'=>\'\',\'livecity\'=>\'\',\'livearea\'=>\'\'))}'" >
								<span>居住地：</span>
								{$city_parent[0][$_GET['liveprovince']]['categoryname']} {$city_parent[$_GET['liveprovince']][$_GET['livecity']]['categoryname']} {$city_parent[$_GET['livecity']][$_GET['livearea']]['categoryname']}
								
							</div>
						</if>
						<if condition="$Think.get.expectprovince neq ''">
							<div class="slist" onclick="window.location='{:P(array(\'expectprovince\'=>\'\',\'expectcity\'=>\'\',\'expectarea\'=>\'\'))}'" >
								<span>期望工作地点：</span>
								{$city_parent[0][$_GET['expectprovince']]['categoryname']} {$city_parent[$_GET['expectprovince']][$_GET['expectcity']]['categoryname']} 
								
							</div>
						</if>
						<if condition="$Think.get.jobs neq ''">
							<div class="slist" onclick="window.location='{:P(array('jobs'=>''))}';">
								<span>职位类别：</span>
								{$jobs_info['categoryname']}
							</div>
						</if>
						<if condition="$Think.get.major neq ''">
							<div class="slist" onclick="window.location='{:P(array('major'=>''))}';">
								<span>工程类别：</span>
								{$major_info['categoryname']}
							</div>
						</if>
						<if condition="$Think.get.settr neq ''">
							<div class="slist" onclick="window.location='{:P(array('settr'=>''))}';">
								<span>更新时间：</span>
								<switch name="_GET['settr']">
									<case value="3">3天内</case>
									<case value="7">7天内</case>
									<case value="15">15天内</case>
									<case value="30">30天内</case>
								</switch>
							</div>
						</if>
						
						<div class="clear"></div>
					</div>
					<div class="sr">
						<div class="empty" onclick="window.location='{:url_rewrite('search_for_talent')}';">清空</div>
					</div>
					<div class="clear"></div>
				</div>
			</if>
		</div>
			<!-- ============================== -->
			<div class="i_main">
				<div class="listb J_allListBox">
					<notempty name="{resumelist}">
						<volist name="{resumelist}" id="resume">
							<div class="J_resumeList yli" data-rid="{$resume.id}">
								<div class="td1">
									
								</div>
								<div class="td4 link_blue substring link_visited">
									<a href="{$resume.resume_url}" target="_blank">{$resume.intention_jobs|default="未填写求职意向"}</a>
								</div>
								<div class="td2 link_blue substring link_visited">
									<a href="{$resume.resume_url}" target="_blank">{$resume.fullname}</a>
									<if condition="$resume['talent'] eq 1"><a class="adv"></a></if>
									<if condition="$resume['strong_tag']"><span>{$resume['strong_tag']}</span></if>
								</div>
								<div class="td3 substring">
									{$resume.sex_cn}
									<span>|</span>{$resume.age}岁
									<span>|</span>{$resume.education_cn}
									<span>|</span>{$resume.experience_cn}</div>
								<div class="td5 substring">{$resume.district_cn|default='未填写'}</div>
								<div class="td6">
									<if condition="$resume['stick'] eq 1 && !$_GET['sort']">
										<img src="{:C('TPL_PUBLIC_DIR')}/images/stick.png">
										<else />
										{$resume['refreshtime_cn']}
									</if>
								</div>
								<div class="td7">
									<div class="J_resumeStatus hide <if condition="$Think.cookie.resume_show_type eq 1 or ($Think.cookie.resume_show_type eq null and C('qscms_resume_list_show_type') eq 2)">show</if>"></div></div>
								<div class="clear"></div>
								<div class="detail" <if condition="$Think.cookie.resume_show_type eq 1 or ($Think.cookie.resume_show_type eq null and C('qscms_resume_list_show_type') eq 2)">style="display:none"</if>>
									<div class="ltx">
										<div class="photo"><img src="{$resume.photosrc}" border="0"/></div>
										<div class="tcent">
										<div class="txt font_gray6">{$resume.nature_cn}<if condition="$resume['major_cn']"><span>|</span>专业：{$resume.major_cn}</if><span>|</span>{$resume.wage_cn}<span>|</span>{$resume.current_cn}</div>
										<div class="dlabs">
											<if condition="$resume['tag_cn'] || $resume['specialty']">
												<empty name="resume['tag_cn']">
													{$resume.specialty}
													<else/>
													<volist name="resume['tag_cn']" id="tag">
														<div class="dl">{$tag}</div>
													</volist>
												</empty>
												<else />
												该简历没有填写自我描述
											</if>
											<div class="clear"></div>
										</div>
									</div>
									<div class="clear"></div>
								</div>
								<div class="rbtn">
									<if condition="$resume['word_resume'] neq ''" >
										<div class="deliver J_downResume" data-batch="false" data-url="{:U('CompanyService/resume_download',array('to_detail'=>1))}">下载简历</div>
									</if>
									
									<!-- <div class="favorites J_collectForResume" data-batch="false" data-url="{:U('AjaxCompany/resume_favor')}">收藏</div> -->
								</div>
								<div class="clear"></div>
							</div>
						</div>
						</volist>
						<div class="qspage">{$page}</div>
					<else/>
						<div class="list_empty_group">
							<div class="list_empty">
								<div class="list_empty_left"></div>
								<div class="list_empty_right">
									<div class="sorry_box">对不起，没有找到符合您条件的简历！</div>
									<div class="stips_box">放宽您的查找条件也许有更多合适您的简历哦~</div>
								</div>
								<div class="clear"></div>
							</div>
						</div>

					</notempty>
				</div>



			</div>
		</div>
		<div class="clear"></div>


	</div>
	<include file="index_footer" />
	<script type="text/javascript" src="../public/js/company/fusioncharts/fusioncharts.js"></script>
	<script type="text/javascript" src="../public/js/company/fusioncharts/fusioncharts.theme.fint.js"></script>
	<script type="text/javascript" src="../public/js/jquery.resumelist.js"></script>
	<script type="text/javascript" src="{:C('TPL_PUBLIC_DIR')}/js/jquery.highlight-3.js"></script>

	<script type="text/javascript">
	    //点击 搜索框上按钮操作
		$('.headline').click(function(){
			var category = $(this).data("type");
			$(".headline").removeClass('select');
			$(".headline[data-type=" + category + "]").addClass('select');
		});
		//点击搜索按钮
		$(document).ready(function(){
			// 顶部回车搜索
			$('#keyword').bind('keypress', function(event) {
				if (event.keyCode == "13") {
					$("#top_search_btn").click();
				}
			})
			// 顶部搜索跳转
			$('#top_search_btn').click(function() {
				var keyword = $('#keyword').val();
				var typeSearch = $('#typeSearch .select').attr('data-type');

				typeSearch = typeSearch ? typeSearch : '';
				var thisURL = document.location.href;
				var thisURL = UpdateUrlParam(thisURL,'typesearch', typeSearch);
				 thisURL = UpdateUrlParam(thisURL,'keyword', keyword);
				location.href = thisURL;
			})
		})
		// 关键字高亮
		var keyWords = $('input[name="keyword"]').val();
		if (keyWords.length) {
			$('.J_resumeList').highlight(keyWords);
		}


		//
		function UpdateUrlParam(thisURL,name, val) {
            // 如果 url中包含这个参数 则修改
            if (thisURL.indexOf(name+'=') > 0) {
                var v = getUrlParam(name)
                if (v != null) {
                    // 是否包含参数
                    thisURL = thisURL.replace(name + '=' + v, name + '=' + val);
                }else {
                    thisURL = thisURL.replace(name + '=', name + '=' + val);
                }
            } // 不包含这个参数 则添加
            else {
                if (thisURL.indexOf("?") > 0) {
                    thisURL = thisURL + "&" + name + "=" + val;
                }else {
                    thisURL = thisURL + "?" + name + "=" + val;
                }
            }
            return thisURL;
        };
		//获取url中的参数
		function getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = window.location.search.substr(1).match(reg); //匹配目标参数
			if (r != null) return unescape(r[2]); return null; //返回参数值
		}

		//点击高级搜索
		$('.advanced_search').click(function(){
			$(".so_condition").slideToggle();
		});

	// 下载、收藏简历
	resumeSomething('.J_downResume', '下载成功！', true);
	resumeSomething('.J_collectForResume', '收藏成功！', false);
	function resumeSomething (trigger, successMsg, isdown) {
		$(trigger).click(function() {
			var tag = $(this);
			var batch = eval($(this).data('batch'));
			var url = $(this).data('url');
			var ridValue = '';
			var isType = '';
			if (batch) {
				if (listCheckEmpty()) {
					disapperTooltip('remind','您还没有选择简历！');
					return false;
				} else {
					var listCheckedObjs = $('.J_allListBox .J_allList.select');
					var ridArray = new Array();
					$.each(listCheckedObjs, function(index, val) {
						ridArray[index] = $(this).closest('.J_resumeList').data('rid');
					});
					ridValue = ridArray.join(',');
				}
			} else {
				ridValue = $(this).closest('.J_resumeList').data('rid');
			}
			isdown ? isType = 'GET' : isType = 'POST';
			$.ajax({
				url: url,
				type: isType,
				dataType: 'json',
				data: {rid: ridValue}
			})
			.done(function(data) {
				if (parseInt(data.status)) {
					if (isdown) {
						$(this).dialog({
							title: '下载简历',
							border: false,
							footer: false,
							content:data.msg
						});
					} else {
						disapperTooltip('success', successMsg);
						tag.text('已收藏');
					}
				} else {
					if (eval(data.dialog)) {
						var qsDialog = $(this).dialog({
			        		loading: true,
							footer: false,
							header: false,
							border: false,
							backdrop: false
						});
						var loginUrl = qscms.root + '?m=Home&c=AjaxCommon&a=ajax_login';
						$.getJSON(loginUrl, function(result){
				            if(result.status==1){
								qsDialog.hide();
								var qsDialogSon = $(this).dialog({
									header: false,
									content: result.data.html,
									footer: false,
									border: false
								});
				    			qsDialogSon.setInnerPadding(false);
				            } else {
				            	qsDialog.hide();
				                disapperTooltip("remind", result.msg);
				            }
				        });
					} else {
						if(data.msg=='请登录企业帐号！'){
							var qsDialogSec = $(this).dialog({
		            			title: '账号切换',
								content: '<div style="width:300px;text-align:center;">您当前账号为个人，是否切换为企业？</div>',
								yes: function () {
									var url = "{:U('Members/switch_utype',array('utype'=>1))}";
									location.href = url;
								},
								footer: true,
								header: true,
								border: false
							});
							return false;
						}else{
							disapperTooltip("remind", data.msg);
							qsDialog.hide();
						}
						
					
					}
				}
			})
		});
	}
	</script>
</body>


</html>